// ===============================
// 首页专属样式 - 现代化设计风格
// ===============================

// ===============================
// 1. 首页轮播区域
// ===============================

.carouselBox {
	position: relative;
	overflow: hidden;
	width: 100%;

	.imgStyle {
		width: 100%;
		height: 100%;
		object-fit: cover;
		filter: brightness(0.8);
		transition: filter 0.3s ease;
	}

	&:hover .imgStyle {
		filter: brightness(1);
	}

	&-text {
		color: white;
		font-size: 3.5em;
		font-weight: 700;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 1200px;
		text-align: center;
		text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
		z-index: 2;
	}

	// 添加渐变叠加效果
	&::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: var(--theme-hero-overlay);
		z-index: 1;
	}
}

// ===============================
// 2. 产品组件样式
// ===============================

.product-intro {
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px;

	h2 {
		font-size: 2.5rem;
		font-weight: 700;
		color: var(--theme-accent);

		background-clip: text;
		margin-bottom: 1rem;
	}

	p {
		color: var(--theme-content-text-muted);
		font-size: 1.2rem;
		line-height: 1.7;
	}
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.product-card {
	background: var(--theme-card-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--theme-card-shadow);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--theme-content-border);
	backdrop-filter: blur(10px);
	position: relative;

	&:hover {
		transform: translateY(-8px);
		box-shadow: var(--theme-card-shadow-hover);
	}

	// 顶部装饰条
	&::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 4px;
		background: var(--theme-gradient-primary);
		z-index: 1;
	}

	.card-header {
		padding: 2rem 1.5rem 1rem;
		text-align: center;
		position: relative;

		.icon-wrapper {
			width: 80px;
			height: 80px;
			margin: 0 auto 1.5rem;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 50%;
			background: var(--theme-icon-bg);
			transition: all 0.3s ease;

			svg {
				width: 40px;
				height: 40px;
				fill: var(--theme-accent);
				transition: fill 0.3s ease;
			}
		}

		h3 {
			margin: 0;
			font-size: 1.1rem;
			font-weight: 600;
			color: var(--theme-accent);
			margin-bottom: 0.5rem;
		}

		p {
			margin: 0;
			font-size: 1.3rem;
			font-weight: 700;
			color: var(--theme-content-title);
		}
	}

	.card-body {
		padding: 16px;
		flex-grow: 1;

		p {
			margin: 0;
			font-size: 0.95rem;
			color: var(--theme-content-text);
			line-height: 1.6;
		}
	}

	.card-footer {
		padding: 1.25rem;
		background: var(--theme-card-footer-bg);
		text-align: center;

		.btn {
			display: inline-block;
			background: transparent;
			color: var(--theme-accent);
			border: 2px solid var(--theme-accent);
			padding: 0.7rem 2rem;
			border-radius: 25px;
			font-weight: 600;
			font-size: 0.9rem;
			text-decoration: none;
			transition: all 0.3s ease;
			cursor: pointer;

			&:hover {
				background: var(--theme-accent);
				color: white;
				transform: translateY(-2px);
			}
		}
	}

	&:hover .card-header .icon-wrapper {
		transform: scale(1.1);
		background: var(--theme-icon-bg-hover);
	}
}

// ===============================
// 3. 服务组件样式
// ===============================

.services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.service-card {
	background: var(--theme-card-bg);
	border-radius: 12px;
	box-shadow: var(--theme-card-shadow);
	transition: all 0.3s ease;
	padding: 2rem 1.5rem;
	cursor: pointer;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--theme-content-border);
	backdrop-filter: blur(10px);

	&:hover {
		box-shadow: var(--theme-card-shadow-hover);
		transform: translateY(-5px);
	}

	// 底部装饰条动画
	&::before {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 3px;
		background: var(--theme-gradient-primary);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s ease-in-out;
	}

	&:hover::before {
		transform: scaleX(1);
	}

	.service-title {
		font-size: 20px;
		margin: 0;
		color: var(--theme-content-title);
		transition: color 0.3s ease;
		font-weight: 600;
	}

	&:hover .service-title {
		color: var(--theme-accent);
	}

	// 活跃状态
	&.active {
		background: var(--theme-content-hover);
		border-color: var(--theme-accent);

		.service-title {
			color: var(--theme-accent);
		}

		&::before {
			transform: scaleX(1);
		}
	}
}

// ===============================
// 4. 解决方案组件样式
// ===============================

.solution-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.solution-card {
	background: var(--theme-card-bg);
	border-radius: 12px;
	box-shadow: var(--theme-card-shadow);
	transition: all 0.3s ease;
	padding: 2rem 1.5rem;
	cursor: pointer;
	text-align: center;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--theme-content-border);
	backdrop-filter: blur(10px);

	&:hover {
		box-shadow: var(--theme-card-shadow-hover);
		transform: translateY(-5px);
	}

	// 左侧装饰条
	&::before {
		content: '';
		position: absolute;
		left: 0;
		top: 0;
		width: 4px;
		height: 100%;
		background: var(--theme-gradient-primary);
		transform: scaleY(0);
		transform-origin: top;
		transition: transform 0.3s ease-in-out;
	}

	&:hover::before {
		transform: scaleY(1);
	}

	.solution-title {
		font-size: 1.2rem;
		margin: 0;
		color: var(--theme-content-title);
		transition: color 0.3s ease;
		font-weight: 600;
	}

	&:hover .solution-title {
		color: var(--theme-accent);
	}

	// 活跃状态
	&.active {
		background: var(--theme-content-hover);
		border-color: var(--theme-accent);

		.solution-title {
			color: var(--theme-accent);
		}

		&::before {
			transform: scaleY(1);
		}
	}
}

// ===============================
// 5. 内容区域
// ===============================

.content-section {
	padding: 20px 0;
	position: relative;

	&:nth-child(even) {
		background: var(--theme-section-alt-bg);
	}
}

// ===============================
// 6. 响应式适配
// ===============================

@media (max-width: 768px) {
	.carouselBox-text {
		font-size: 1.8em;
		padding: 0 20px;
		width: calc(100% - 40px);
	}

	.product-intro {
		padding: 0 10px;
		margin-bottom: 2rem;

		h2 {
			font-size: 1.8rem;
		}

		p {
			font-size: 1rem;
		}
	}

	.product-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 0 10px;
	}

	.product-card .card-header {
		padding: 1.5rem 1rem 1rem;

		.icon-wrapper {
			width: 60px;
			height: 60px;

			svg {
				width: 30px;
				height: 30px;
			}
		}

		h3 {
			font-size: 1rem;
		}

		p {
			font-size: 1.1rem;
		}
	}

	.services-grid,
	.solution-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
		padding: 10px;
	}

	.service-card,
	.solution-card {
		padding: 1.5rem 1rem;

		.service-title,
		.solution-title {
			font-size: 1rem;
			line-height: 1.3;
		}
	}

	.content-section {
		padding: 40px 0;
	}
}

@media (max-width: 480px) {
	.carouselBox-text {
		font-size: 1.4em;
		padding: 0 15px;
		width: calc(100% - 30px);
	}

	.product-intro h2 {
		font-size: 1.5rem;
	}

	.services-grid,
	.solution-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}

	.service-card,
	.solution-card {
		padding: 1.25rem 0.75rem;

		.service-title,
		.solution-title {
			font-size: 0.9rem;
		}
	}

	.content-section {
		padding: 30px 0;
	}
}

// ===============================
// 7. 轮播图相关样式
// ===============================

.el-carousel__indicators {
	display: none;
}

.el-carousel__button {
	background-color: var(--theme-accent) !important;
}

.el-carousel__indicators .is-active {
	background-color: var(--theme-accent) !important;

	.el-carousel__button {
		background-color: white !important;
	}
}
